Retrieves general information about an assignment.
Parent Type: SlkStore
Namespace: Microsoft.SharePointLearningKit
Assembly: Microsoft.SharePointLearningKit.dll
| C# |
|
public AssignmentProperties GetAssignmentProperties ( ) |
assignmentId
The AssignmentItemIdentifier of the assignment to retrieve information about.
slkRole
The SlkRole for which information is to be retrieved.
An AssignmentProperties object containing information about the assignment. Note that only the UserId of each SlkUser object within the returned AssignmentProperties.Instructors and AssignmentProperties.Learners collections is valid.
| Exception type | Condition |
| SafeToDisplayException | An error occurred that can be displayed to a browser user. Possible cause: the user isn't an instructor on the assignment (if slkRole is SlkRole.Instructor), or the user isn't a learner on the assignment (if slkRole is SlkRole.Learner). |
Security: If slkRole is SlkRole.Instructor, this operation fails if the current user isn't an instructor on the assignment. If slkRole is SlkRole.Learner, this operation fails if the current user isn't a learner on the assignment.